package com.fourpigeon.service;

import com.fourpigeon.domain.Result;
import org.springframework.transaction.annotation.Transactional;

@Transactional
public interface BlogGetService {
    Result getDaily(Long blogId);

    Result getDeal(Long blogId);

    Result getAgree(Short blogType, Long blogId);

    Result getPractice(Long blogId);

    Result getPractices(Long startId);

    Result getAgrees(Short blogType, Long startId);

    Result getDeals(Long startId);

    Result getDailys(Long startId);

    Result getPageComment(Long blogId, Long start);

    Result getUserAgrees(Short blogType, Long userId, Long startId);

    Result getUserDailies(Long userId, Long startId);

    Result getUserDeals(Long userId, Long startId);

    Result getUserPractices(Long userId, Long startId);

    Result getHotBlog(Integer blogType);

    Result getSearchDeals(String searchKeyWord, Short type);

    Result getSearchDailies(String searchKeyWord, Short type);

    Result getSearchPractices(String searchKeyWord, Short type);

    Result getSearchAgrees(String searchKeyWord, Short type, Short blogType);
}